<template>
    <div class="container">
        <!-- 面包屑 -->
        <el-page-header @back="goBack">
            <template #content>
            <span class="text-large font-600 mr-3"> {{ knowledgeList.title }} </span>
            </template>
        </el-page-header>
        <div class="tltie_top">
            <h1>{{ knowledgeList.title }}</h1>
            <p class="time">{{ knowledgeList.time }} &nbsp; 书画家：{{ knowledgeList.name }}</p>
        </div>
        <el-divider border-style="double" />
        <div class="main">
            <p>{{ knowledgeList.detail }}</p>
        </div>
    </div>
</template>

<script>
import { useRoute, useRouter } from 'vue-router'
import { computed } from 'vue'
import { useStore } from 'vuex'
export default {
  name: 'KnowledgeDetail',
  setup (props) {
    const route = useRoute()
    const router = useRouter()
    const store = useStore()
    const knowledgeList = computed(() => {
      return store.state.knowLedge.KnowledgeDetailList
    })
    const goBack = () => {
      router.go(-1)
    }
    return { goBack, route, knowledgeList }
  }
}
</script>

<style scoped lang="less">
.tltie_top{
    margin-top: 20px;
    .time{
        color: #999;
        margin-top: 10px;
    }
}
.main{
    p{
        line-height: 28px;
        font-size: 18px;
        columns:100px 3;
        column-gap:30px;
        column-rule: 1px dotted ;
        word-wrap:break-word;
        font-family:Arial,Helvetica,sans-serif;
        // font-family:"微软雅黑","黑体","宋体";
        font-size: 16px;
        color: #000000;
        // background: #f2e7ca url(images/templatemo_body.jpg) top center no-repeat;
    }
}
</style>
